package com.xianyun.book.controller;

import com.alibaba.cola.dto.Response;
import com.xianyun.book.api.SystemUserServiceI;
import com.xianyun.book.dto.UserUpdateCmd;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author ytt
 */
@RestController
public class UserController {
    @Autowired
    private SystemUserServiceI userService;
    /**
     * 修改用户信息
     * @return 响应结果
     */
    @PostMapping("/user/info/update")
    public Response updateUserInfo(UserUpdateCmd updateCmd){
        return userService.updateUserInfo(updateCmd);
    }
}
